// nav: true, // 是否输入header中的选项
import { lazy } from 'react';

export default [
  {
    path: '/',
    name: 'main',
    exact: true,
    element: lazy(() => import('../../page/home/index')),
    meta: {
      nav: false,
      navValue: null
    },
    children: [
      {
        path: '/',
        exact: true,
        name: 'home',
        label: '首页',
        element: lazy(() => import('../../page/home/main/index')),
        meta: {
          nav: true,
          navValue: 0
        }
      },
      {
        path: '/assembly',
        exact: false,
        label: '组件',
        name: 'assembly',
        element: lazy(() => import('../../page/assembly/index')),
        meta: {
          nav: true,
          navValue: 1
        }
      },
      {
        path: '/community',
        exact: false,
        label: '社区',
        name: 'community',
        element: lazy(() => import('../../page/community/index')),
        meta: {
          nav: true,
          navValue: 2
        }
      }
    ]
  }
];
